/*************************************************************************
	> File Name: main.c
	> Author: Wang Bo
	> Mail: 1276106221@qq.com
	> Created Time: 2020年11月07日 星期六 20时55分36秒
 ************************************************************************/

#include <stdio.h>
#include <include/test.h>
#include <include/linklist.h>
struct TestInfo mytest_info;

int add(int a, int b) {
    return a + b;
}

TEST(func, add) {
    EXPECT_EQ(add(1, 1), 2);
    EXPECT_NE(add(1, 1), 1);
    EXPECT_GT(add(1, 2), 2);
    EXPECT_GE(add(1, 2), 3);
    EXPECT_LT(add(1, 2), 4);
    EXPECT_LE(add(1, 2), 3);
}

TEST(myfunc, add) {
    EXPECT_EQ(add(2, 1), 3);
    EXPECT_NE(add(2, 1), 2);
    EXPECT_GT(add(2, 2), 3);
    EXPECT_GE(add(2, 2), 3);
    EXPECT_LT(add(2, 2), 5);
    EXPECT_LE(add(2, 2), 3);
}

int main() {

    return RUN_ALL_TEST();
}
